<h1 class="list">Usuários</h1>

<div class="table">
<img src="/img/bg-th-left.gif" alt="" class="left" height="7" width="8">
<img src="/img/bg-th-right.gif" alt="" class="right" height="7" width="7">
<table class="listing" cellspacing="0" cellpadding="0">
  <tr>
    <th>Email</th>
    <th colspan="3">Ação</th>
  </tr>

<% for usuario in @usuarios %>
  <tr>
    <td><%=h usuario.email %></td>
    <td><%= link_to image_tag("login-icon.gif"), usuario %></td>
    <td><%= link_to image_tag("edit-icon.gif"), edit_usuario_path(usuario) %></td>
    <td><%= link_to image_tag("hr.gif"), usuario, :confirm => 'Tem certeza?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'Novo', new_usuario_path, :class => "button" %>
